package com.blacktry.mapper.blog;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blacktry.entity.blog.Articles;
import com.blacktry.entity.blog.Comments;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author blackTry
 * @since 2022-02-07
 */
public interface CommentsMapper extends BaseMapper<Comments> {


    List<Integer> selectCommentsByArticleId(Integer articleId);

    List<Integer> selectCommentsByParentCommentId(Integer parent, Integer articleId);

    Integer insertCommentsByArticleId(Integer articleId,String userId);

    Integer deleteCommentsByCommentId(Integer articleId);
}
